import matplotlib.pyplot as plt
import numpy as np


def sigmoid(x):
    return 1/(np.exp(-x) + 1)

if __name__ == '__main__':
    x = np.arange(-10, 10)
    y = sigmoid(x)
    # print(y)

    plt.plot(x, y)
    plt.show()